package com.psg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.psg.pojo.Car;
import com.psg.vo.CarProduceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarDao extends BaseMapper<Car> {

    Long getCarIdAccount(Integer carId);

    List<Car> findMyCar(Integer id);

    Car hasCar(@Param("cId") Integer cId, @Param("pId") Integer pId);

    List<CarProduceVo> queryMyCarProducesList(int userId);

    void deleteCarProduceById(int id);

    Car queryById(int id);

    List<Car> queryByIds(@Param("ids") int[] ids);

    void batchDeleteByIds(@Param("ids") int[] ids);
}
